// StudentComprehensiveScoreMapper.java
package com.ruoyi.stuactivity.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.stuactivity.domain.StudentComprehensiveScore;
import org.apache.ibatis.annotations.Param;

public interface StudentComprehensiveScoreMapper extends BaseMapper<StudentComprehensiveScore> {
    /**
     * 检查学生是否已报名该活动（根据学号和活动名称）
     */
    boolean existsByStudentAndActivity(
            @Param("studentId") String studentId,
            @Param("activityName") String activityName
    );
}
